package com.tequila.core.dao;

import com.tequila.domain.dto.StoreManagerDto;
import com.tequila.domain.entity.StoreManager;
import com.tequila.domain.query.StoreManagerQuery;

import java.util.List;

public interface StoreManagerDao {
    StoreManager queryById(Long id);

    List<StoreManagerDto> queryByIdList(List<Long> idList);

    List<StoreManagerDto> queryListByParam(StoreManagerQuery query);

    List<StoreManagerDto> queryPageListByParam(StoreManagerQuery query);

    int queryPageCountByParam(StoreManagerQuery query);

    int insert(StoreManager entity);

    int insertSelective(StoreManager entity);

    int updateById(StoreManager param);

    int updateSelectiveById(StoreManager param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);

    StoreManagerDto queryByPhone(String phone);
}